package top.noteday.provider.field;

import java.util.List;
import java.util.Date;
import entity.Page;
import entity.result.EntityResult;
import entity.result.PageResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import entity.field.*;

// TODO 修改 path
@FeignClient(value = "kalimdor-apiImpl", path = "/backstage/field", contextId="fieldService")
public interface FieldService {

    /**
     * 查询一个
     */
    @PostMapping(value = "/selectById")
    Field selectById(@RequestParam("id") Integer id);

    /**
     * 保存属性
     */
    @PostMapping(value = "/saveField")
    EntityResult<FieldDto> saveField(@RequestBody FieldVo vo);

    /**
     * 清除数据
     */
    @PostMapping(value = "/clearFieldByFormId")
    int clearFieldByFormId(@RequestParam("id") Integer id);
    /**
     * 分页查询
     */
    /*
    @PostMapping(value = "/selectField")
    PageResult<FieldDto> selectField(@RequestBody FieldVo fieldVo);
    */
}
